package tushare

import (
	"tushare/model/mysql"
)

type Weekly struct {
	Id        int64   `json:"id"`
	TsCode    string  `json:"ts_code"`
	TradeDate string  `json:"trade_date"`
	Open      float64 `json:"open"`
	High      float64 `json:"high"`
	Low       float64 `json:"low"`
	Close     float64 `json:"close"`
	PreClose  float64 `json:"pre_close"`
	Change    float64 `json:"change"`
	PctChg    float64 `json:"pct_chg"`
	Vol       float64 `json:"vol"`
	Amount    float64 `json:"amount"`
}

func WeeklyCreate(w Weekly) {
	mysql.DB.Table("tushare_weekly").Create(&w)
}
